import React,{ useState } from 'react'
import './App.css'
export default function App() {
  let [uname,setUname]=useState('admin')
  let [upwd,setUpwd]=useState('123456')
  return (
    <div className='box'>
      <input value={uname} onChange={(e)=>setUname(e.target.value)} placeholder='请输入用户名'/>
      <input value={upwd} onChange={(e)=>setUpwd(e.target.value)} placeholder='请输入密码'/>
      <button onClick={()=>console.log(uname,upwd)}>登录</button>
    </div>
  )
}
